3.8.36 \(\int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx\) [736]

3.8.36.1 Optimal result
3.8.36.2 Mathematica [A] (verified)
3.8.36.3 Rubi [A] (verified)
3.8.36.4 Maple [A] (verified)
3.8.36.5 Fricas [A] (verification not implemented)
3.8.36.6 Sympy [F(-1)]
3.8.36.7 Maxima [B] (verification not implemented)
3.8.36.8 Giac [A] (verification not implemented)
3.8.36.9 Mupad [B] (verification not implemented)

3.8.36.1 Optimal result

Integrand size = 29, antiderivative size = 168 \[ \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {3 \text {arctanh}(\cos (c+d x))}{64 a^2 d}-\frac {2 \cot ^5(c+d x)}{5 a^2 d}-\frac {3 \cot ^7(c+d x)}{7 a^2 d}-\frac {\cot ^9(c+d x)}{9 a^2 d}+\frac {3 \cot (c+d x) \csc (c+d x)}{64 a^2 d}+\frac {\cot (c+d x) \csc ^3(c+d x)}{32 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x)}{8 a^2 d}+\frac {\cot ^3(c+d x) \csc ^5(c+d x)}{4 a^2 d} \]

output
3/64*arctanh(cos(d*x+c))/a^2/d-2/5*cot(d*x+c)^5/a^2/d-3/7*cot(d*x+c)^7/a^2 
/d-1/9*cot(d*x+c)^9/a^2/d+3/64*cot(d*x+c)*csc(d*x+c)/a^2/d+1/32*cot(d*x+c) 
*csc(d*x+c)^3/a^2/d-1/8*cot(d*x+c)*csc(d*x+c)^5/a^2/d+1/4*cot(d*x+c)^3*csc 
(d*x+c)^5/a^2/d
 
3.8.36.2 Mathematica [A] (verified)

Time = 2.90 (sec) , antiderivative size = 313, normalized size of antiderivative = 1.86 \[ \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\csc ^9(c+d x) \left (-451584 \cos (c+d x)-155904 \cos (3 (c+d x))+20736 \cos (5 (c+d x))+14976 \cos (7 (c+d x))-1664 \cos (9 (c+d x))+119070 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right ) \sin (c+d x)-119070 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \sin (c+d x)+212940 \sin (2 (c+d x))-79380 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right ) \sin (3 (c+d x))+79380 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \sin (3 (c+d x))+195300 \sin (4 (c+d x))+34020 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right ) \sin (5 (c+d x))-34020 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \sin (5 (c+d x))+16380 \sin (6 (c+d x))-8505 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right ) \sin (7 (c+d x))+8505 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \sin (7 (c+d x))-1890 \sin (8 (c+d x))+945 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right ) \sin (9 (c+d x))-945 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \sin (9 (c+d x))\right )}{5160960 a^2 d} \]

input
Integrate[(Cot[c + d*x]^8*Csc[c + d*x]^2)/(a + a*Sin[c + d*x])^2,x]
 
output
(Csc[c + d*x]^9*(-451584*Cos[c + d*x] - 155904*Cos[3*(c + d*x)] + 20736*Co 
s[5*(c + d*x)] + 14976*Cos[7*(c + d*x)] - 1664*Cos[9*(c + d*x)] + 119070*L 
og[Cos[(c + d*x)/2]]*Sin[c + d*x] - 119070*Log[Sin[(c + d*x)/2]]*Sin[c + d 
*x] + 212940*Sin[2*(c + d*x)] - 79380*Log[Cos[(c + d*x)/2]]*Sin[3*(c + d*x 
)] + 79380*Log[Sin[(c + d*x)/2]]*Sin[3*(c + d*x)] + 195300*Sin[4*(c + d*x) 
] + 34020*Log[Cos[(c + d*x)/2]]*Sin[5*(c + d*x)] - 34020*Log[Sin[(c + d*x) 
/2]]*Sin[5*(c + d*x)] + 16380*Sin[6*(c + d*x)] - 8505*Log[Cos[(c + d*x)/2] 
]*Sin[7*(c + d*x)] + 8505*Log[Sin[(c + d*x)/2]]*Sin[7*(c + d*x)] - 1890*Si 
n[8*(c + d*x)] + 945*Log[Cos[(c + d*x)/2]]*Sin[9*(c + d*x)] - 945*Log[Sin[ 
(c + d*x)/2]]*Sin[9*(c + d*x)]))/(5160960*a^2*d)
 
3.8.36.3 Rubi [A] (verified)

Time = 0.63 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.02, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {3042, 3354, 3042, 3352, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a \sin (c+d x)+a)^2} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {\cos (c+d x)^8}{\sin (c+d x)^{10} (a \sin (c+d x)+a)^2}dx\)

\(\Big \downarrow \) 3354

\(\displaystyle \frac {\int \cot ^4(c+d x) \csc ^6(c+d x) (a-a \sin (c+d x))^2dx}{a^4}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\int \frac {\cos (c+d x)^4 (a-a \sin (c+d x))^2}{\sin (c+d x)^{10}}dx}{a^4}\)

\(\Big \downarrow \) 3352

\(\displaystyle \frac {\int \left (a^2 \cot ^4(c+d x) \csc ^6(c+d x)-2 a^2 \cot ^4(c+d x) \csc ^5(c+d x)+a^2 \cot ^4(c+d x) \csc ^4(c+d x)\right )dx}{a^4}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\frac {3 a^2 \text {arctanh}(\cos (c+d x))}{64 d}-\frac {a^2 \cot ^9(c+d x)}{9 d}-\frac {3 a^2 \cot ^7(c+d x)}{7 d}-\frac {2 a^2 \cot ^5(c+d x)}{5 d}+\frac {a^2 \cot ^3(c+d x) \csc ^5(c+d x)}{4 d}-\frac {a^2 \cot (c+d x) \csc ^5(c+d x)}{8 d}+\frac {a^2 \cot (c+d x) \csc ^3(c+d x)}{32 d}+\frac {3 a^2 \cot (c+d x) \csc (c+d x)}{64 d}}{a^4}\)

input
Int[(Cot[c + d*x]^8*Csc[c + d*x]^2)/(a + a*Sin[c + d*x])^2,x]
 
output
((3*a^2*ArcTanh[Cos[c + d*x]])/(64*d) - (2*a^2*Cot[c + d*x]^5)/(5*d) - (3* 
a^2*Cot[c + d*x]^7)/(7*d) - (a^2*Cot[c + d*x]^9)/(9*d) + (3*a^2*Cot[c + d* 
x]*Csc[c + d*x])/(64*d) + (a^2*Cot[c + d*x]*Csc[c + d*x]^3)/(32*d) - (a^2* 
Cot[c + d*x]*Csc[c + d*x]^5)/(8*d) + (a^2*Cot[c + d*x]^3*Csc[c + d*x]^5)/( 
4*d))/a^4
 

3.8.36.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 3352
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n 
_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Int[ExpandTrig 
[(g*cos[e + f*x])^p, (d*sin[e + f*x])^n*(a + b*sin[e + f*x])^m, x], x] /; F 
reeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && IGtQ[m, 0]
 

rule 3354
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n 
_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(a/g)^(2* 
m)   Int[(g*Cos[e + f*x])^(2*m + p)*((d*Sin[e + f*x])^n/(a - b*Sin[e + f*x] 
)^m), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && 
ILtQ[m, 0]
 
3.8.36.4 Maple [A] (verified)

Time = 0.51 (sec) , antiderivative size = 200, normalized size of antiderivative = 1.19

method result size
parallelrisch \(\frac {-70 \left (\cot ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+70 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+315 \left (\cot ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-315 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-450 \left (\cot ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+450 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1008 \left (\cot ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1008 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2520 \left (\cot ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2520 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+3360 \left (\cot ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-3360 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-15120 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-11340 \cot \left (\frac {d x}{2}+\frac {c}{2}\right )+11340 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{322560 d \,a^{2}}\) \(200\)
derivativedivides \(\frac {\frac {\left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{9}-\frac {\left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}+\frac {5 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{7}-\frac {8 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+4 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {16 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+18 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {5}{7 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}-\frac {18}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-24 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {16}{3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}+\frac {8}{5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}-\frac {1}{9 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}+\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}-\frac {4}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}}{512 d \,a^{2}}\) \(202\)
default \(\frac {\frac {\left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{9}-\frac {\left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}+\frac {5 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{7}-\frac {8 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+4 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {16 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+18 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {5}{7 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}-\frac {18}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-24 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {16}{3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}+\frac {8}{5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}-\frac {1}{9 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}+\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}-\frac {4}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}}{512 d \,a^{2}}\) \(202\)
risch \(-\frac {945 \,{\mathrm e}^{17 i \left (d x +c \right )}+120960 i {\mathrm e}^{10 i \left (d x +c \right )}-8190 \,{\mathrm e}^{15 i \left (d x +c \right )}-40320 i {\mathrm e}^{14 i \left (d x +c \right )}-97650 \,{\mathrm e}^{13 i \left (d x +c \right )}+19584 i {\mathrm e}^{4 i \left (d x +c \right )}-106470 \,{\mathrm e}^{11 i \left (d x +c \right )}+330624 i {\mathrm e}^{8 i \left (d x +c \right )}-14976 i {\mathrm e}^{2 i \left (d x +c \right )}+106470 \,{\mathrm e}^{7 i \left (d x +c \right )}+8064 i {\mathrm e}^{6 i \left (d x +c \right )}+97650 \,{\mathrm e}^{5 i \left (d x +c \right )}+147840 i {\mathrm e}^{12 i \left (d x +c \right )}+8190 \,{\mathrm e}^{3 i \left (d x +c \right )}+1664 i-945 \,{\mathrm e}^{i \left (d x +c \right )}}{10080 a^{2} d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{9}}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{64 d \,a^{2}}+\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{64 d \,a^{2}}\) \(238\)

input
int(cos(d*x+c)^8*csc(d*x+c)^10/(a+a*sin(d*x+c))^2,x,method=_RETURNVERBOSE)
 
output
1/322560*(-70*cot(1/2*d*x+1/2*c)^9+70*tan(1/2*d*x+1/2*c)^9+315*cot(1/2*d*x 
+1/2*c)^8-315*tan(1/2*d*x+1/2*c)^8-450*cot(1/2*d*x+1/2*c)^7+450*tan(1/2*d* 
x+1/2*c)^7+1008*cot(1/2*d*x+1/2*c)^5-1008*tan(1/2*d*x+1/2*c)^5-2520*cot(1/ 
2*d*x+1/2*c)^4+2520*tan(1/2*d*x+1/2*c)^4+3360*cot(1/2*d*x+1/2*c)^3-3360*ta 
n(1/2*d*x+1/2*c)^3-15120*ln(tan(1/2*d*x+1/2*c))-11340*cot(1/2*d*x+1/2*c)+1 
1340*tan(1/2*d*x+1/2*c))/d/a^2
 
3.8.36.5 Fricas [A] (verification not implemented)

Time = 0.28 (sec) , antiderivative size = 269, normalized size of antiderivative = 1.60 \[ \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {3328 \, \cos \left (d x + c\right )^{9} - 14976 \, \cos \left (d x + c\right )^{7} + 16128 \, \cos \left (d x + c\right )^{5} - 945 \, {\left (\cos \left (d x + c\right )^{8} - 4 \, \cos \left (d x + c\right )^{6} + 6 \, \cos \left (d x + c\right )^{4} - 4 \, \cos \left (d x + c\right )^{2} + 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) + 945 \, {\left (\cos \left (d x + c\right )^{8} - 4 \, \cos \left (d x + c\right )^{6} + 6 \, \cos \left (d x + c\right )^{4} - 4 \, \cos \left (d x + c\right )^{2} + 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) + 630 \, {\left (3 \, \cos \left (d x + c\right )^{7} - 11 \, \cos \left (d x + c\right )^{5} - 11 \, \cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{40320 \, {\left (a^{2} d \cos \left (d x + c\right )^{8} - 4 \, a^{2} d \cos \left (d x + c\right )^{6} + 6 \, a^{2} d \cos \left (d x + c\right )^{4} - 4 \, a^{2} d \cos \left (d x + c\right )^{2} + a^{2} d\right )} \sin \left (d x + c\right )} \]

input
integrate(cos(d*x+c)^8*csc(d*x+c)^10/(a+a*sin(d*x+c))^2,x, algorithm="fric 
as")
 
output
-1/40320*(3328*cos(d*x + c)^9 - 14976*cos(d*x + c)^7 + 16128*cos(d*x + c)^ 
5 - 945*(cos(d*x + c)^8 - 4*cos(d*x + c)^6 + 6*cos(d*x + c)^4 - 4*cos(d*x 
+ c)^2 + 1)*log(1/2*cos(d*x + c) + 1/2)*sin(d*x + c) + 945*(cos(d*x + c)^8 
 - 4*cos(d*x + c)^6 + 6*cos(d*x + c)^4 - 4*cos(d*x + c)^2 + 1)*log(-1/2*co 
s(d*x + c) + 1/2)*sin(d*x + c) + 630*(3*cos(d*x + c)^7 - 11*cos(d*x + c)^5 
 - 11*cos(d*x + c)^3 + 3*cos(d*x + c))*sin(d*x + c))/((a^2*d*cos(d*x + c)^ 
8 - 4*a^2*d*cos(d*x + c)^6 + 6*a^2*d*cos(d*x + c)^4 - 4*a^2*d*cos(d*x + c) 
^2 + a^2*d)*sin(d*x + c))
 
3.8.36.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\text {Timed out} \]

input
integrate(cos(d*x+c)**8*csc(d*x+c)**10/(a+a*sin(d*x+c))**2,x)
 
output
Timed out
 
3.8.36.7 Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 314 vs. \(2 (152) = 304\).

Time = 0.22 (sec) , antiderivative size = 314, normalized size of antiderivative = 1.87 \[ \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\frac {\frac {11340 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {3360 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {2520 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {1008 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {450 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} - \frac {315 \, \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + \frac {70 \, \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}}}{a^{2}} - \frac {15120 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}} + \frac {{\left (\frac {315 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {450 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {1008 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {2520 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {3360 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} - \frac {11340 \, \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} - 70\right )} {\left (\cos \left (d x + c\right ) + 1\right )}^{9}}{a^{2} \sin \left (d x + c\right )^{9}}}{322560 \, d} \]

input
integrate(cos(d*x+c)^8*csc(d*x+c)^10/(a+a*sin(d*x+c))^2,x, algorithm="maxi 
ma")
 
output
1/322560*((11340*sin(d*x + c)/(cos(d*x + c) + 1) - 3360*sin(d*x + c)^3/(co 
s(d*x + c) + 1)^3 + 2520*sin(d*x + c)^4/(cos(d*x + c) + 1)^4 - 1008*sin(d* 
x + c)^5/(cos(d*x + c) + 1)^5 + 450*sin(d*x + c)^7/(cos(d*x + c) + 1)^7 - 
315*sin(d*x + c)^8/(cos(d*x + c) + 1)^8 + 70*sin(d*x + c)^9/(cos(d*x + c) 
+ 1)^9)/a^2 - 15120*log(sin(d*x + c)/(cos(d*x + c) + 1))/a^2 + (315*sin(d* 
x + c)/(cos(d*x + c) + 1) - 450*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 1008 
*sin(d*x + c)^4/(cos(d*x + c) + 1)^4 - 2520*sin(d*x + c)^5/(cos(d*x + c) + 
 1)^5 + 3360*sin(d*x + c)^6/(cos(d*x + c) + 1)^6 - 11340*sin(d*x + c)^8/(c 
os(d*x + c) + 1)^8 - 70)*(cos(d*x + c) + 1)^9/(a^2*sin(d*x + c)^9))/d
 
3.8.36.8 Giac [A] (verification not implemented)

Time = 0.38 (sec) , antiderivative size = 245, normalized size of antiderivative = 1.46 \[ \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {15120 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{2}} - \frac {42774 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 11340 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} + 3360 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 2520 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1008 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 450 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 315 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 70}{a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9}} - \frac {70 \, a^{16} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 315 \, a^{16} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} + 450 \, a^{16} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 1008 \, a^{16} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 2520 \, a^{16} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 3360 \, a^{16} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 11340 \, a^{16} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{18}}}{322560 \, d} \]

input
integrate(cos(d*x+c)^8*csc(d*x+c)^10/(a+a*sin(d*x+c))^2,x, algorithm="giac 
")
 
output
-1/322560*(15120*log(abs(tan(1/2*d*x + 1/2*c)))/a^2 - (42774*tan(1/2*d*x + 
 1/2*c)^9 - 11340*tan(1/2*d*x + 1/2*c)^8 + 3360*tan(1/2*d*x + 1/2*c)^6 - 2 
520*tan(1/2*d*x + 1/2*c)^5 + 1008*tan(1/2*d*x + 1/2*c)^4 - 450*tan(1/2*d*x 
 + 1/2*c)^2 + 315*tan(1/2*d*x + 1/2*c) - 70)/(a^2*tan(1/2*d*x + 1/2*c)^9) 
- (70*a^16*tan(1/2*d*x + 1/2*c)^9 - 315*a^16*tan(1/2*d*x + 1/2*c)^8 + 450* 
a^16*tan(1/2*d*x + 1/2*c)^7 - 1008*a^16*tan(1/2*d*x + 1/2*c)^5 + 2520*a^16 
*tan(1/2*d*x + 1/2*c)^4 - 3360*a^16*tan(1/2*d*x + 1/2*c)^3 + 11340*a^16*ta 
n(1/2*d*x + 1/2*c))/a^18)/d
 
3.8.36.9 Mupad [B] (verification not implemented)

Time = 13.58 (sec) , antiderivative size = 387, normalized size of antiderivative = 2.30 \[ \int \frac {\cot ^8(c+d x) \csc ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {70\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{18}-70\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{18}+315\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{17}-315\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{17}\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-450\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{16}+1008\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{14}-2520\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}+3360\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-11340\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+11340\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-3360\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+2520\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5-1008\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{14}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+450\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{16}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+15120\,\ln \left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9}{322560\,a^2\,d\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9} \]

input
int(cos(c + d*x)^8/(sin(c + d*x)^10*(a + a*sin(c + d*x))^2),x)
 
output
-(70*cos(c/2 + (d*x)/2)^18 - 70*sin(c/2 + (d*x)/2)^18 + 315*cos(c/2 + (d*x 
)/2)*sin(c/2 + (d*x)/2)^17 - 315*cos(c/2 + (d*x)/2)^17*sin(c/2 + (d*x)/2) 
- 450*cos(c/2 + (d*x)/2)^2*sin(c/2 + (d*x)/2)^16 + 1008*cos(c/2 + (d*x)/2) 
^4*sin(c/2 + (d*x)/2)^14 - 2520*cos(c/2 + (d*x)/2)^5*sin(c/2 + (d*x)/2)^13 
 + 3360*cos(c/2 + (d*x)/2)^6*sin(c/2 + (d*x)/2)^12 - 11340*cos(c/2 + (d*x) 
/2)^8*sin(c/2 + (d*x)/2)^10 + 11340*cos(c/2 + (d*x)/2)^10*sin(c/2 + (d*x)/ 
2)^8 - 3360*cos(c/2 + (d*x)/2)^12*sin(c/2 + (d*x)/2)^6 + 2520*cos(c/2 + (d 
*x)/2)^13*sin(c/2 + (d*x)/2)^5 - 1008*cos(c/2 + (d*x)/2)^14*sin(c/2 + (d*x 
)/2)^4 + 450*cos(c/2 + (d*x)/2)^16*sin(c/2 + (d*x)/2)^2 + 15120*log(sin(c/ 
2 + (d*x)/2)/cos(c/2 + (d*x)/2))*cos(c/2 + (d*x)/2)^9*sin(c/2 + (d*x)/2)^9 
)/(322560*a^2*d*cos(c/2 + (d*x)/2)^9*sin(c/2 + (d*x)/2)^9)